package com.example.springboot.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zf
 * @数据与标签中间表
 * @since 2021-05-26
 */
@Data
public class DataTag implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 标签id
     */
    private Integer tagId;

    /**
     * 链接标签数据id
     */
    private Integer dataId;

    /**
     * 类型 - 1：素材 2：文章
     */
    private Integer type;

    /**
     * 逻辑删除
     */
    private Integer invalid;


}
